﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Usr.Repository.Entities
{
    /// <summary>
    /// 转账记录
    /// </summary>
    [Table("usr_transferAccountsLog"), Comment("用户转账记录"), Index(nameof(Transferor))]
    public class WalletTransferAccountsLog : EfEntity
    {
        /// <summary> 
        /// 转出方
        /// </summary>
        [Comment("转出方")]
        public long Transferor { get; set; }

        /// <summary>
        /// 转入方
        /// </summary>
        [Comment("转入方")]
        public long Transferee { get; set; }

        /// <summary> 
        /// 转账金额
        /// </summary>
        [Comment("转账金额"), Column(TypeName = "decimal(18,2)")]
        public Decimal Money { get; set; }

        /// <summary> 
        /// 备注
        /// </summary>
        [Comment("备注"),MaxLength(200)]
        public string? Remark { get; set; }

        /// <summary> 
        /// 转账时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
